/*
*Copyright(c) 2020思特诺(Stduino)All right reserved.
*
*This library is open source and free for individual users. 
*
*For commercial use, please contact server@stduino.com.
*/
#ifndef Lcd12864_h
#define Lcd12864_h
#include "Stduino.h"
#include "StduinoTime.h"
#include "StduinoPulse.h"
#include "StduinoBasic.h"
#include "StduinoString.h"

class Lcd12864
{
private:
 int delaytime;
 int clockPin;//EN
 int dataPin; //RW
 int latchPin;//RS
 void WriteByte(int dat);
 void WriteCommand(int CMD);
 void WriteData(int CMD);
public:
 void Begin(int CLOCK,int DATA,int LATCH,int DELAYTIME=80);
 void Clean(void);
 void Clean(int X,int Y,int Num);
 void DisplayString(int X,int Y,String ptr,int dat);
 void DisplaySig(int M,int N,int sig);
 void DrawFullScreen(unsigned char *p);
 void ShowString(uint8_t,uint8_t,String);
 void ShowDouble(int,int,double);
 void ShowInt(int,int,int);
};
#endif
